package com.zej.ssm.service.impl;

import com.zej.ssm.bean.User;
import com.zej.ssm.dao.UserMapper;
import com.zej.ssm.service.UserService;
import com.zej.ssm.util.MybatisUtils;

import java.util.List;

/**
 * @author 一缕茜阳
 * @date 2021/7/19
 */
public class UserServiceImpl implements UserService {
    private UserMapper userMapper = MybatisUtils.getSession().getMapper(UserMapper.class);

    @Override
    public List<User> getAllUsers() {
        return userMapper.getAllUsers();
    }
}
